Opencode mutation scope integration - #276
Open
davidabram wants to merge 5 commits into
Open
Conversation
davidabram
added this pull request to stack #240
September 10, 2026 11:31
davidabram
force-pushed
the
opencode-mutation-scope-integration
branch
5 times, most recently
from
September 10, 2026 15:54
d4922bb to
e19059c
Compare
davidabram
force-pushed
the
opencode-mutation-scope-integration
branch
from
September 10, 2026 16:05
e19059c to
2201ce8
Compare
Define the six-task plan for lifecycle evidence, boundary-confirmed attribution, adapter identity and classification, durable recovery, plugin wiring, and end-to-end regressions for OpenCode mutation scopes. Preserve the existing generic ingress, provenance semantics, and conservative false-positive guard. Plan: opencode-mutation-scope-integration Tasks: T01, T02, T03, T04, T05, T06
Record version-bound OpenCode 1.15.4 lifecycle evidence and probe fixtures before adapter wiring. Document tracked tool boundaries, confirmation-required start/close semantics, plugin ordering barriers, session/model provenance, and hard-kill behavior. This establishes the safe v1 evidence boundary: bash/write/edit/apply_patch are tracked, task is delegation, and plugin/MCP/unknown tools remain untracked; live apply_patch coverage remains a credential-gated follow-up. Plan: opencode-mutation-scope-integration (T01)
OpenCode Start boundaries are write-ahead admissions and can remain live when a tool is rejected or fails before its confirming Close, so treating them like ordinary scopes could produce false authorship claims. Generalize the mutation protocol and Quint model to require confirmation for Codex and OpenCode, while preserving ClaudeCode and Pi behavior. Add OpenCode reachability and Rust/Quint regression coverage, update the runtime documentation, and mark plan T02 complete. The conservative rule keeps attribution IneligibleUnscoped until every live confirmation-required scope is confirmed; public attribution and state shapes remain unchanged.
Prepare the hidden OpenCode hook command for lifecycle integration by strictly parsing hook events, classifying mutation and delegation tools, and deriving collision-resistant scope and event identifiers from session and call identities. Normalize optional model provenance while keeping the adapter inert until lifecycle wiring is implemented. Plan: opencode-mutation-scope-integration, T03
davidabram
force-pushed
the
opencode-mutation-scope-integration
branch
from
September 10, 2026 18:02
848e252 to
4f95be8
Compare
OpenCode needs durable, fail-closed tracking around mutation-capable tool calls so its harness can establish, close, and abandon scopes without weakening attribution when hooks fail or processes end unexpectedly. Add checkout-local attempt state and locks, generation-tracked recovery, and ingress-seam lifecycle handling for Bash and file tools, with exact cleanup signals and no same-session sweep or TTL. The adapter now drives the generic runtime seam while preserving idempotent replay, recovery barriers, and conservative failure behavior; untracked and delegation events remain zero-footprint. Follow-up plugin generation and setup registration remain outside this task. Plan: opencode-mutation-scope-integration, T04 Co-authored-by: SCE <sce@crocoder.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.